import requests from "./request";


export const reqyiyan = () => {
    // 返回promise对象
    return requests({ url: 'yiyan/index.php', method: 'get'});
}

// 登录
export const sendLogin = (login) => {
    // 返回用户信息对象
    return requests({
        url: 'UserServlet/login', method: 'post', baseURL: '/myshop', headers: {
            'username': login.username,
            'password': login.password,
        },
    });
}